//
//  AppDelegate+Location.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/6/5.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "AppDelegate+Location.h"
#import <BaiduMapAPI_Base/BMKBaseComponent.h>


@implementation AppDelegate (Location)

- (void)setUpLocation
{
    if ([BMKMapManager setCoordinateTypeUsedInBaiduMapSDK:BMK_COORDTYPE_BD09LL]) {
        NSLog(@"经纬度类型设置成功");
    } else {
        NSLog(@"经纬度类型设置失败");
    }
    BMKMapManager *mgr = [[BMKMapManager alloc]init];
    BOOL ret = [mgr start:@"S2GqAikovRn0rjpmmzIK3uXKoqZjQHP9"  generalDelegate:nil];
    if (!ret) {
        NSLog(@"授权失败!");
    }
}

@end
